<?php

class IndexController extends MController
{
	
	public function actions()
	{
		return array(
			'captcha' => array(
				'class' => 'application.controllers.user.CaptchaAction',
				'minLength' => 5,
				'maxLength' => 5,
				'width' => 65,
				'height' => 25,
				'padding' => 0,
				'offset' => 0
			)
		);
	}
	
	/*
	public function filters()
	{
		return array_merge(
			parent::filters(), 
			array(
				array(
					'application.controllers.user.LoginFilter + user_login',
					'var_name' => 'var'
				)
			)
		);
	}
	*/
		
	public function actionIndex()
	{
		//echo '<pre>';print_r($this->module->params);echo '</pre>';die;
		//echo 'module.index.index';
		//echo '<pre>';print_r($this->module->viewPath);echo '</pre>';
		//echo '<pre>';print_r($this->layout);echo '</pre>';die;
		$this->render('index');
	}
	
	public function actionLogin()
	{
		$this->render('login');
	}
}